Skip to content

Explain installs the phone blocks over Wireless debugging - #25

Merged
FacuM merged 3 commits into
mainfrom
fix/adb-install-user-restricted
Oct 30, 2026
Merged

FacuM merged 3 commits into
mainfrom
fix/adb-install-user-restricted

Conversation

@FacuM

@FacuM FacuM commented Oct 30, 2026 •

Copy link
Copy Markdown
Contributor

Summary

Unattended phone installs go through pm install over the phone's own Wireless debugging. On Xiaomi/HyperOS with "Install via USB" off, and on OPPO/realme/vivo, the phone returns INSTALL_FAILED_USER_RESTRICTED. The app showed a generic refusal and Retry failed forever.

Changes:

  • A specific message explains the restriction.
  • An "Install with confirmation" action uses the system installer, on explicit tap.
  • A pre-check of persist.security.adbinstall runs before any APK is sent.

The README known-issues list drops #10 (confirmed fixed by the reporter) and #19 (closed). Version bumped to 0.10.10.

Changes

  • ui/screens/install/: InstallScreens, InstallSteps, InstallViewModel, PhoneInstallRunner.
  • res/values*/strings.xml: new messages and action label (values + 17 locales).
  • New unit test AdbInstallRestrictedTest.
  • patcher-app/app/build.gradle.kts: versionName 0.10.10.
  • README.md: known-issues cleanup.

Test plan

  • :app:testDebugUnitTest (845 tests)
  • :adb:test (123 tests)
  • :engine:test (168 tests)
  • On a Xiaomi phone with "Install via USB" off, unattended install shows the new message and "Install with confirmation" works

FacuM added 3 commits October 30, 2026 16:18
Unattended phone installs go through `pm install` over the phone's own
Wireless debugging. On Xiaomi/HyperOS with "Install via USB" off, and on
OPPO/realme/vivo, the phone returns INSTALL_FAILED_USER_RESTRICTED. The
app showed a generic refusal and Retry failed forever.

Now the app shows a specific message, offers "Install with confirmation"
(the system installer, on explicit tap), and checks persist.security.adbinstall
before any APK is sent.
@FacuM
FacuM merged commit 06fc139 into main Oct 30, 2026
1 check passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant